package com.scujcc.ssm.Config.Exception;

import com.scujcc.ssm.Config.Util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class HandleException {
    @ExceptionHandler
    Result handleExp(Exception e){
        e.printStackTrace();
        return new Result(false,"服务器异常，请稍后再试");
    }

}
